#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "../umlcore/PartialElement.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class Deployment;
class PackageableElement;

/// <summary>
/// DeploymentTarget
/// A deployment target is the location for a deployed artifact.
/// </summary>
class UMLMODEL_EXPORT DeploymentTarget : public PartialElement {

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Methods
public: // Properties
    /// <summary>
    /// deployedElements getter
    /// The set of elements that are manifested in an Artifact that is involved in
    /// Deployment to a DeploymentTarget.
    /// </summary>
    vector<shared_ptr<PackageableElement>>& deployedElements();

    /// <summary>
    /// deployments getter
    /// The set of Deployments for a DeploymentTarget.
    /// </summary>
    vector<shared_ptr<Deployment>>& deployments();

private: // Fields
    /// <summary>
    /// deployedElements
    /// The set of elements that are manifested in an Artifact that is involved in
    /// Deployment to a DeploymentTarget.
    /// </summary>
    vector<shared_ptr<PackageableElement>> deployedElements_;

    /// <summary>
    /// deployments
    /// The set of Deployments for a DeploymentTarget.
    /// </summary>
    vector<shared_ptr<Deployment>> deployments_;

};

} // namespace uml
